Add a way to release GL resources
authorMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jan 2018 01:15:45 +0000 (20:15 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 18 Jan 2018 01:15:45 +0000 (20:15 -0500)
commit5e302ae2cc62d2e1d7cae9e6efb3b32b368c7b30
treee9c5e72cf07a25ffdefedcada676c6cfbcdf3f20
parent34c63b8e4f5068e855283e54bf76233a4e575a59
Add a way to release GL resources

The inspector may hold on to render nodes and textures
beyond the lifetime of the widget (and thus the GL
resources). To handle this situation, allow the widget
to explicitly release the GL resources, and make
the texture available on the clent-side as a cairo
surface. This lets the recorder still show the content
after the widget is gone.
gdk/gdktexture.c
gdk/gdktexture.h